

<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">{{title}}</h3>
        </div>
        <div class="panel-body">
            <h1>添加用户1--for field in form </h1>
            <form method="post" novalidate>
                {% csrf_token %}
                {% for field in form %}
                <div class="form-group">
                    <label>{{field.label}}</label>
                    {{field}}
                    <span style="color:red;">{{field.errors.0}}</span>
                </div>
                {% endfor %}
                <button type="submit" class="btn btn-primary">提交</button>
            </form>
            <h1>添加用户2</h1>
            <form method="post">
                <!-- <form method="post" action="/info/add"> -->
                {% csrf_token %}
                <input type="text" name="username" placeholder="用户名">
                <input type="text" name="password" placeholder="密码">
                <!-- <input type="text" name="age" placeholder="年龄">
                <input type="text" name="usera" placeholder="用户名a">
                <input type="text" name="pwda" placeholder="密码a">
                <input type="text" name="agea" placeholder="年龄a"> -->
                <input type="submit" value="提交2">
            </form>
            <h1>添加用3--加不了</h1>
    <form method="post">


        {% csrf_token %}
        {% for field in form %}
        {{ field.label }} : {{field}}

        {% endfor %}
        <input type="submit" value="model-add添加3">

        
    </form>

        </div>
        <table class="table table-bordered">
            <thead>
              <tr>
                <th>ID</th>
                <th>用户名</th>
                <th>密码</th>
                <th>操作</th>
              </tr>
            </thead>
            <span>要传值</span>
            <tbody>
              {% for obj in queryset %}
              <tr>
                <th>{{obj.id}}</th>
                <td>{{obj.username}}</td>
                <td>{{obj.password}}</td>
                
                <td>
                  <!-- <a class="btn btn-primary btn-xs" href="/admin/admin_edit/?nid={{obj.id}}">编辑? </a> -->
                
                  <!-- <a class="btn btn-danger btn-xs" href="/Admin_regedithtml/delete/?nid={{obj.id}}">删除</a> -->
                  
                </td>
              </tr>
              {% endfor %}
            </tbody>
          </table>
    </div>
</div>